import request from "@/utils/request";

// 查询小程序首页列表
export function listBizIndexPage(query){
  return request({
    url: "/biz/bizIndexPage/list",
    method: "get",
    params: query
  })
}

// 查询小程序首页详细
export function getBizIndexPage(id){
  return request({
    url: "/biz/bizIndexPage/" + id,
    method: "get"
  })
}

// 新增小程序首页
export function addBizIndexPage(data){
  return request({
    url: "/biz/bizIndexPage",
    method: "post",
    data: data
  })
}

// 修改小程序首页
export function updateBizIndexPage(data){
  return request({
    url: "/biz/bizIndexPage",
    method: "put",
    data: data
  })
}

// 删除小程序首页
export function delBizIndexPage(id){
  return request({
    url: "/biz/bizIndexPage/" + id,
    method: "delete"
  })
}

// 查询最大编号
export function findMaxSort(){
  return request({
    url: "/biz/bizIndexPage/findMaxSort",
    method: "get"
  })
}
// 导出小程序首页
export function exportBizIndexPage (query){
  return request({
    url: "/biz/bizIndexPage/export",
    method: "get",
    params: query
  })
}
